package com.code.day15DuoXianC.Thread;

public class Test01 {
    public static void main(String[] args) throws InterruptedException {
        MyTherad myTherad = new MyTherad();

//        设置线程名字
        myTherad.setName("碎碎念");

        myTherad.start();

        for (int i = 0; i < 5; i++) {
            Thread.sleep(1000L);
            System.out.println(MyTherad.currentThread().getName() + ".....Test01.." + i);
        }
    }
}
